package JavaGuide.reflect;

import JavaGuide.ConstructorChoose;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;

@Data

public class Order {
    private Address address;
    private Customer customer;

    @ConstructorChoose
    public Order(Address address, Customer customer) {
        this.address = address;
        this.customer = customer;
    }

    public Order() {
    }
}
